package com.xindacloud.sms.console.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xindacloud.sms.console.system.entity.SmsUserRole;
import com.xindacloud.sms.console.system.mapper.SmsUserRoleMapper;
import com.xindacloud.sms.console.system.service.ISmsUserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务实现类
 * </p>
 *
 * @author czc
 * @since 2019-10-08
 */
@Service
public class SmsUserRoleServiceImpl extends ServiceImpl<SmsUserRoleMapper, SmsUserRole> implements ISmsUserRoleService {

    @Override
    public List<SmsUserRole> querySmsUserRoleList(Integer userId) {
        return lambdaQuery()
                .eq(SmsUserRole::getUserId, userId)
                .list();
    }
}
